<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/jeDate/jedate.css" rel="stylesheet"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 4px 0px 0px;">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tabbable">
                    <ul class="nav nav-tabs tabs-flat" id="myTab11" style="background-image: url('/gobal/img/tb_header.png'); background-size: 34px 60px;">
                        <li class="active"><a href="/app/core/task/createtask" aria-expanded="true">新建任务</a></li>
                        <li><a href="/app/core/task/createtask?view=manage" aria-expanded="false">任务管理 </a></li>
                    </ul>
                    <div class="tab-content tabs-flat" style="padding: 0px;">
                        <div class="row">
                            <div class="col-md-offset-2 col-md-8 col-sm-12 col-xs-12" style="padding: 0px">
                                <form class="form-horizontal" id="form">
                                    <table class="table table-hover table-striped table-bordered">
                                        <tr>
                                            <td width="20%">任务标题：</td>
                                            <td width="30%"><input type="text" class="form-control" id="taskName"
                                                                   maxlength="150" placeholder="任务标题"></td>
                                            <td width="20%">任务类型：</td>
                                            <td width="30%"><select id="taskType" name="taskType" class="form-control"
                                                                    style="border-radius: 0px;"></select></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">分享人员：</td>
                                            <td width="30%" colspan="2"><textarea id="userPriv" name="userPriv" rows="5"
                                                                                  placeholder="分享人员"
                                                                                  class="form-control"
                                                                                  readonly="readonly"></textarea></td>
                                            <td><a class="selectbutton" opt-id="userPriv"
                                                   onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                                <a class="selectbutton" onclick="clearSelect('userPriv');">${i18n('system.clear')}</a></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">分享部门：</td>
                                            <td width="30%" colspan="2"><textarea id="deptPriv" name="deptPriv" rows="5"
                                                                                  placeholder="部门" class="form-control"
                                                                                  readonly="readonly"></textarea></td>
                                            <td><a class="selectbutton" opt-id="deptPriv"
                                                   onclick="selectDept(this,'true');">${i18n('system.select')}</a>
                                                <a class="selectbutton" onclick="clearSelect('deptPriv');">${i18n('system.clear')}</a></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">分享职务：</td>
                                            <td width="30%" colspan="2"><textarea id="levelPriv" name="levelPriv"
                                                                                  rows="5"
                                                                                  placeholder="行政级别"
                                                                                  class="form-control"
                                                                                  readonly="readonly"></textarea></td>
                                            <td><a class="selectbutton" opt-id="levelPriv"
                                                   onclick="selectUserLevel(this,'true');">${i18n('system.select')}</a>
                                                <a class="selectbutton" onclick="clearSelect('levelPriv');">${i18n('system.clear')}</a></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">任务参与人：</td>
                                            <td width="30%" colspan="2"><textarea id="participantAccountId" rows="5"
                                                                                  name="participantAccountId"
                                                                                  placeholder="任务参与人"
                                                                                  class="form-control"
                                                                                  readonly="readonly"></textarea></td>
                                            <td><a class="selectbutton" opt-id="participantAccountId"
                                                   onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                                <a class="selectbutton" onclick="clearSelect('participantAccountId');">${i18n('system.clear')}</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">任务负责人：</td>
                                            <td width="30%"><input type="text" id="chargeAccountId" name="chargeAccountId" placeholder="任务负责人"
                                                                   class="form-control" readonly="readonly" onclick="selectUser(this,'false');" opt-id="chargeAccountId"></td>
                                            <td>任务监督人：</td>
                                            <td><input type="text" id="supervisorAccountId" name="supervisorAccountId"
                                                       placeholder="任务监督人" class="form-control" readonly="readonly" onclick="selectUser(this,'false');" opt-id="supervisorAccountId">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">任务摘要：</td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <div id="remark" style="height: 300px"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">任务时间：</td>
                                            <td width="30%"><input type="text" class="form-control" id="beginTime"
                                                                   readonly="readonly" name="beginTime"
                                                                   placeholder="任务时间">
                                            </td>
                                            <td width="20%">所需工期(天)：</td>
                                            <td width="30%"><input type="number" class="form-control" id="duration"
                                                                   name="duration" placeholder="所需工期"
                                                                   style="cursor: pointer;">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">相关附件：</td>
                                            <td width="30%" colspan="3">
                                                <div id="show_taskattach"></div>
                                                <a class="addfile" href="javascript:void(0)">${i18n('fileupload')} <input data_value=""
                                                                                                                          type="file"
                                                                                                                          onchange="fileUpLoad('task','taskattach');"
                                                                                                                          hidefocus="true"
                                                                                                                          size="1"
                                                                                                                          id="taskattach"
                                                                                                                          name="taskattach"
                                                                                                                          class="addfile"
                                                                                                                          multiple="multiple"></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">附件权限：</td>
                                            <td width="30%" colspan="3">
                                                <div class="control-group" style="padding-top: 5px;">
                                                    <label> <input type="radio" class="colored-danger" value="1"
                                                                   name="attachPriv"
                                                                   checked="checked"> <span class="text">在线阅读</span>
                                                    </label> <label> <input type="radio" class="colored-danger"
                                                                            value="2" name="attachPriv">
                                                    <span class="text">允许打印</span>
                                                </label> <label> <input type="radio" class="colored-danger" value="3"
                                                                        name="attachPriv">
                                                    <span class="text">允许下载</span>
                                                </label>
                                                    <label> <input type="radio" class="colored-danger" value="4"
                                                                   name="attachPriv"> <span
                                                            class="text">在线编辑</span>
                                                        <input type="hidden" class="colored-danger" value=""
                                                               name="attachPriv">
                                                    </label>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">消息提醒：</td>
                                            <td width="30%" colspan="3">
                                                <div id="msgType"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="4"><a id="updatebut" href="javascript:void(0);" class="btn btn-primary">更新任务</a> <a href="#" onclick=" history.back(-1);" class="btn btn-success">${i18n('system.back')}</a></td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="orgselectdiv"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript">
    var taskId = "${parameter.taskId}";
</script>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="/module/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/task/edittask.js"></script>
</html>
